﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class BUSLop
    {
        public static DataTable getAll(int makhoi)
        {
            return DAOLop.getAll(makhoi);
        }

        public static bool isDuplicate(DTOLop lop)
        {
            return DAOLop.isDuplicate(lop);
        }

        public static void Add(int makhoi,string tenlop)
        {
            DAOLop.Add(makhoi,tenlop);
        }

        public static void Delete(int malop)
        {
            DAOLop.Delete(malop);
        }

        public static void Edit(int malop,int makhoi, string tenlop)
        {
            DAOLop.Edit(malop,makhoi,tenlop);
        }
    }
}
